package cn.itcast.user.config;

import cn.itcast.user.service.UserService;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author diandian
 * @date 2021-12-08 11:38
 */
@Component
@ConfigurationProperties(prefix = "sms")
@Data
//@EnableConfigurationProperties(SmsProperties.class)
public class SmsProperties {
//    @Value("${sms.key}")
    private String secretKey;
//    @Value("${sms.value}")
    private String secretValue;
}
